import service from '@/utils/request'

// @Tags GameZone
// @Summary 创建gameZone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameZone true "创建gameZone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /gameZone/createGameZone [post]
export const createGameZone = (data) => {
  return service({
    url: '/gameZone/createGameZone',
    method: 'post',
    data
  })
}

// @Tags GameZone
// @Summary 删除gameZone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameZone true "删除gameZone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameZone/deleteGameZone [delete]
export const deleteGameZone = (params) => {
  return service({
    url: '/gameZone/deleteGameZone',
    method: 'delete',
    params
  })
}

// @Tags GameZone
// @Summary 批量删除gameZone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除gameZone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /gameZone/deleteGameZone [delete]
export const deleteGameZoneByIds = (params) => {
  return service({
    url: '/gameZone/deleteGameZoneByIds',
    method: 'delete',
    params
  })
}

// @Tags GameZone
// @Summary 更新gameZone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.GameZone true "更新gameZone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /gameZone/updateGameZone [put]
export const updateGameZone = (data) => {
  return service({
    url: '/gameZone/updateGameZone',
    method: 'put',
    data
  })
}

// @Tags GameZone
// @Summary 用id查询gameZone表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.GameZone true "用id查询gameZone表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /gameZone/findGameZone [get]
export const findGameZone = (params) => {
  return service({
    url: '/gameZone/findGameZone',
    method: 'get',
    params
  })
}

// @Tags GameZone
// @Summary 分页获取gameZone表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取gameZone表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameZone/getGameZoneList [get]
export const getGameZoneList = (params) => {
  return service({
    url: '/gameZone/getGameZoneList',
    method: 'get',
    params
  })
}

// @Tags GameZone
// @Summary 获取gameZone表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "获取gameZone表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /gameZone/getGameZoneAll [get]
export const getGameZoneAll = (params) => {
  return service({
    url: '/gameZone/getGameZoneAll',
    method: 'get',
    params
  })
}
